<?php
function Design_Admin_Header($title)
{
	if(file_exists("function/config.inc.php"))
	{
		require("function/config.inc.php");
	}
	else
	{
		require("../function/config.inc.php");
	}

?><!DOCTYPE HTML>
<html>
<head>
	<title><?php echo $title; ?></title>
	<link rel="shortcut icon" href="<?php 
	if(file_exists("favicon.ico"))
	{
		echo("favicon.ico");
	}
	else
	{
		echo("../favicon.ico");
	}
	?>" />
	<link href="<?php echo $CONFIG['pathofapplication'];?>font/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<img src="<?php 
if(file_exists("images/design2.png"))
{
$timenow = time();
$timeofcreation = filemtime("images/design2.png");
$timebetween = $timenow - $timeofcreation;
if($timebetween > 600)
	echo $CONFIG['pathofapplication']."imagedesign.php"; 
else
	echo $CONFIG['pathofapplication']."images/design2.png"; 
}
elseif(file_exists("../images/design2.png"))
{
	$timenow = time();
	$timeofcreation = filemtime("../images/design2.png");
	$timebetween = $timenow - $timeofcreation;
	if($timebetween > 600)
		echo $CONFIG['pathofapplication']."imagedesign.php"; 
	else
		echo $CONFIG['pathofapplication']."images/design2.png"; 
}
else
	echo $CONFIG['pathofapplication']."imagedesign.php"; 
?>"></center>
<?php 
}
?>